<?php
namespace App\Http\Controllers\Home;

use App\Http\Controllers\Core\BaseController;
use Illuminate\Support\Facades\DB;

class IndexController extends BaseController
{
    public function index()
    {


        $index = [1, 2, 3];
        $list = [];
        foreach ($index as $key => $i)
        {
            //$list[$i] = DB::table('job')->where('category_id', $key)->limit(6)->get();
        }

        return view('home.index', ['list' => $list, 'index' => $index]);
    }
}